function InitHeader() {
  document.getElementById("option_btn").addEventListener("click", function () {
    window.location.href = "/pages/option.html"; // 跳转到设置页面
  });
}

function LogoutFunc() {
  // 清除cookie中的access_token
  document.cookie = "access_token=; path=/; max-age=0;";
  window.location.href = "/index.html"; // 重定向到登录页面
}

export { InitHeader };
